
Ext.Loader.setConfig({ enabled: true });

Ext.application({
    name: 'pf',
    appFolder: 'src',
    launch: function() {
        var viewport = Ext.create('Ext.container.Viewport', {
            layout: 'card',
            activeItem: 'dashboard',
            items: Ext.create('pf.UI').init()
        });

        pf.util.MessageBus.on('switchview', function(cardID) {
            viewport.layout.setActiveItem(cardID);
        }, this);
    }
});
